{{include template('public/header','admin')}}
<style>
    .table tr>td, .table tr>th {
        text-align: left;
    }
</style>
</head>
<body>
    <div id="wrapper">
        <!-- Navigation -->
        {{include template('public/nav','admin')}}
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <div class="page-header">
                        <h3>消息提示</h3>
                    </div>
                </div>
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="well">
                        <h4>
                            {{if $type == 'error'}}
                            <i class="fa fa-times-circle fa-fw"></i>
                            {{else}}
                            <i class="fa fa-check-circle fa-fw"></i>
                            {{/if}}
                            {{$content}}</h4>
                        {{if $url}}
                        <a href="{{$url}}">点击此处跳转</a>
                        {{else}}
                        <a href="javascript:history.back();">返回上一页</a>
                        {{/if}}
                        （<em id="jumpTime">{{$time}}</em>秒后自动跳转）
                    </div>
                </div>
            </div>
        </div>
        <hr>
        <p class="text-center">{{get_config('copyright')}}</p>
        <script>
            var time = $("#jumpTime").text();
            var url = "{{$message.url}}";
            if (!url) {
                url = "javascript:history.back()";
            }
            var jumpInterval = setInterval(function () {
                time--;
                if (time < 3)
                    time = 1;
                $("#jumpTime").text(time);
                if (time == 1) {
                    clearInterval(jumpInterval);
                    window.location.href = url;
                }
            }, 100);
        </script>
        {{include template('public/footer','admin')}}



